Package edu.uky.ai.lp.logic
Class Rule
java.lang.Object
edu.uky.ai.lp.logic.Rule
public class Rule
extends java.lang.Object
A rule is a logical axiom used deduce new information.
- Author:
- Stephen G. Ware
-
Field Summary
Fields Modifier and Type Field Description ExpressionantecedentThe condition under which the consequent can be deducedFactconsequentThe fact to be deduced -
Constructor Summary
Constructors Constructor Description Rule(Expression antecedent, Fact consequent)Constructs a new rule with the given antecedent and consequent. -
Method Summary
Modifier and Type Method Description java.lang.StringtoString()
-
Field Details
-
antecedent
The condition under which the consequent can be deduced -
consequent
The fact to be deduced
-
-
Constructor Details
-
Rule
Constructs a new rule with the given antecedent and consequent.- Parameters:
antecedent- the conditionconsequent- the fact to be deduced
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-